import http from "@/utils/http";

export const loginInAPI = (
  username: string,
  password: string,
  id?: string,
  roles?: string,
  status?: number
) => {
  return http({
    url: "/api/v1/landing/employee",
    method: "POST",
    data: {
      id,
      username,
      password,
      roles,
      status,
    },
  });
};

export const customerLoginAPI = (
  encryptedData: string,
  iv: string,
  sessionKey: string,
  code: string,
  phoneNum: string,
  name: string,
  sex: string
) => {
  return http({
    url: "/api/v1/landing/customer",
    method: "POST",
    data: {
      encryptedData,
      iv,
      sessionKey,
      code,
      phoneNum,
      name,
      sex,
    },
  });
};
